package com.cmrx.model.dao;

import com.cmrx.model.entity.CommonPicture;
import org.apache.ibatis.annotations.Mapper;
import org.springframework.stereotype.Repository;

import java.util.List;

/**
 * Created by angle on 2019/2/16.
 */
@Mapper
@Repository
public interface CommonPictureDao {
    /**
     * 根据id查找附件图片信息
     * @param id
     * @return
     */
    CommonPicture queryById(String id);

    /**
     * 根据现勘id查找图片信息
     * @param investigationId
     * @return
     */
    List<CommonPicture> queryByInvestigationid(String investigationId);

    /**
     * 根据id删除附件图片信息
     * @param id
     * @return
     */
    int deleteById(String id);

    /**
     * 添加附件图片信息
     * @param attachment
     * @return
     */
    int addCommonPicture(CommonPicture attachment);

    /**
     * 修改附件图片信息
     * @param commonPicture
     * @return
     */
    int updateById(CommonPicture commonPicture);
}
